var app = getApp()
//微信支付
function sendPay(data, cb) {
  console.log(data)
  wx.requestPayment({
    timeStamp: data.timeStamp+"",
    nonceStr: data.nonceStr,
    package: data.package,
    signType: 'MD5',
    paySign: data.paySign,
    success(res){
      console.log(res)
      cb(true)
    },
    fail(res){
      console.log(res)
      cb(false)
    }
  })

}

module.exports = {
  sendPay: sendPay
}